
<h3>Request Site Update</h3>
<h4>Fill out the form below to send an update to COTC.</h4>
<form id="update" method="post" name="update" action="../inc/process-requestupdate.php">
	<fieldset>
		<legend>Update Information</legend>
		<label for="title">Title/Subject:</label><br />
        <input type="text" name="title" id="title" class="text" size="20" /><br />
		<label for="description">Description: </label><br/ >
		<textarea name="description" id="description"></textarea>
		<br />
		<label for="project">Which one of your projects would you like to update?</label>
		<br />
		<select name="project" id="project">
			<option value="">Choose One...</option>
		<?php 
		$query = "SELECT p_id,p_title FROM projects WHERE c_id='".$_SESSION['client_id']."'";
		$page = mysql_query($query) or die(mysql_error());
		while($row = mysql_fetch_array($page)){
			echo '<option value="'.$row['p_id'].'">'.$row['p_title'].'</option>'."\n";
		}
		?>
		</select>
		<br /><br />
		<div class="page">
			<label for="page">Which page would you like to update?</label>
			<br />
			<select name="page" id="page"></select><br /><br />
		</div>
		<label for="priority">What priority is your update?</label>
		<br />
		<select name="priority" id="priority">
			<option value="None">None</option>
			<option value="Low">Low</option>
			<option value="Medium">Medium</option>
			<option value="High">High</option>
		</select><br /><br />
		
		<label>When is the deadline for this update?</label><br />
		<input type="text" name="deadline" id="date" class="text-date" size="20" />
		<input type="hidden" name="c_id" value="<?php echo $_SESSION['client_id']; ?>" />
		<br /><br />
		<button type="submit" class="button positive"> <img src="../images/icons/tick.png" alt=""/> Send Update </button>
	</fieldset>
</form> 

<br />
<div class="success" style="display:none;">
	Your update has successfully been added and COTC is notified of the change.
</div>
